{% extends "base.html" %}

{% block title %}add new post{% endblock %}
{% block content%}
	
    <div id="new_post">
    	<form action="" method="post">
        {% csrf_token %}
        	{{form.errors}}
        	{{form.title.label}}
        	<span class="form-error">{{form.title.errors}}</span>
            <div>{{form.title}}</div>
            
            {{form.slug.label}}
            <span class="form-error">{{form.slug.errors}}</span>
            <div>{{form.slug}}</div>
            
            {{form.content.label}}
            <span class="form-error">{{form.content.errors}}</span>
            <div>{{form.content}}</div>
            
            {{form.privacy_level.label}}
            <span class="form-error">{{form.privacy_level.errors}}</span>	
            <div>{{form.privacy_level}}</div>
            
            <div>
            {{form.allow_comments.label}}
            <span class="form-error">{{form.allow_comments.errors}}</span>
            {{form.allow_comments}}
            </div>
            <div>
            {{form.show_comments.label}}
            <span class="form-error">{{form.show_comments.errors}}</span>
            {{form.show_comments}}</div>
            <div>
            {{form.tags.label}}	
            <span class="form-error">{{form.tags.errors}}</span>
            {{form.tags}}
            </div>
            <div>
            {{form.blog.label}}	
            <span class="form-error">{{form.blog.errors}}</span>
            {{form.blog}}
            </div>      
            <div>
            {{form.view.label}}	
            <span class="form-error">{{form.view.errors}}</span>
            {{form.view}}
            </div>      

            <input type="submit" value="Post" class = "post-button"/>
         </form>
         
    </div>
{% endblock %}
{%block sidebar%}
{%endblock%}
